﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Windows.Forms;

namespace Cashier.prints
{
    public class PrintParameter
    {
        private DataGridView dgv;

        /// <summary>
        /// 打印的数据对象DataGridView
        /// </summary>
        public DataGridView Dgv
        {
            get { return dgv; }
            set { dgv = value; }
        }
        
        private int left = 20;

        /// <summary>
        /// 打印的X坐标位置
        /// </summary>
        public int Left
        {
            get { return left; }
            set { left = value; }
        }

        private int top = 25;

        /// <summary>
        /// 打印的Y坐标位置
        /// </summary>
        public int Top
        {
            get { return top; }
            set { top = value; }
        }

        private int rowHeight = 24;

        /// <summary>
        /// 设置DataGridView的打印行高
        /// </summary>
        public int RowHeight
        {
            get { return rowHeight; }
            set { rowHeight = value; }
        }

        private bool isPrintHeader = true;

        /// <summary>
        /// 是否打印DataGridView列头
        /// </summary>
        public bool IsPrintHeader
        {
            get { return isPrintHeader; }
            set { isPrintHeader = value; }
        }

        private int startRowIndex;

        /// <summary>
        /// 打印DataGridView起始行的索引
        /// </summary>
        public int StartRowIndex
        {
            get { return startRowIndex; }
            set { startRowIndex = value; }
        }

        private int printWidth;

        /// <summary>
        /// 打印内容的宽度
        /// </summary>
        public int PrintWidth
        {
            get { return printWidth; }
            set { printWidth = value; }
        }

        private int printHeight;

        /// <summary>
        /// 打印内容的高度
        /// </summary>
        public int PrintHeight
        {
            get { return printHeight; }
            set { printHeight = value; }
        }

        private bool isPrintPage = true;

        /// <summary>
        /// 是否打印页码
        /// </summary>
        public bool IsPrintPage
        {
            get { return isPrintPage; }
            set { isPrintPage = value; }
        }

        private int pageIndex = 1;

        /// <summary>
        /// 当前打印页的页数
        /// </summary>
        public int PageIndex
        {
            get { return pageIndex; }
            set { pageIndex = value; }
        }

        private bool isPrintSelectedRows;

        /// <summary>
        /// 是否打印选定的数据
        /// </summary>
        public bool IsPrintSelectedRows
        {
            get { return isPrintSelectedRows; }
            set { isPrintSelectedRows = value; }
        }

        private int barcodeMarksInRow;

        /// <summary>
        /// 每行条码签个数
        /// </summary>
        public int BarcodeMarksInRow
        {
            get { return barcodeMarksInRow; }
            set { barcodeMarksInRow = value; }
        }

        private int barcodeMarkHeight;

        /// <summary>
        /// 条码标签的高度
        /// </summary>
        public int BarcodeMarkHeight
        {
            get { return barcodeMarkHeight; }
            set { barcodeMarkHeight = value; }
        }

        private int barcodeCopies;

        /// <summary>
        /// 打印份数
        /// </summary>
        public int BarcodeCopies
        {
            get { return barcodeCopies; }
            set { barcodeCopies = value; }
        }
    }
}
